import { http } from '@/utils/http/axios';

//获取主控台信息
export function getConsoleInfo(params) {
  return http.request({
    url: '/getkinmuinfo',
    method: 'get',
    params,
  });
}

//获取项目信息
export function getProject(params) {
  return http.request({
    url: '/getproject',
    method: 'get',
    params,
  });
}

//获取考勤年月
export function getKinmuym(params) {
  return http.request({
    url: '/getkinmuym',
    method: 'get',
    params,
  });
}

//获取考勤统计信息
export function getStatisticaldata(params) {
  return http.request({
    url: '/getstatisticaldata',
    method: 'get',
    params,
  });
}

//获取工作人员考勤信息
export function getKinmulist(params) {
  return http.request({
    url: '/getkinmulist',
    method: 'get',
    params,
  });
}

//获取工作人员考勤信息csv导出
export function getKinmucsv(params) {
  return http.request({
    url: '/getkinmucsv',
    method: 'get',
    params,
  });
}

//获取工作人员考勤信息csv导出(按年月导出)
export function exportKinmucsv(params) {
  return http.request({
    url: '/exportcsvformonth',
    method: 'get',
    params,
  });
}